<%@ page import="java.util.List" %>
<%@ page import="java.util.Map" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <%@include file="/jsp/common/js.jsp" %>
    <script>
        function changeLevel(i) {
            var name = $('#div' + i).attr('tag');
            var level = $('#level').val();
            if (level == '') {
                alert("请选择日志级别")
                return;
            }
            var url = 'changeLevel?name=' + name + '&level=' + level;
            window.location = url;
            return false;
        }
    </script>
</head>
<body>
<div class="container">
    <h1>监控</h1>
    <%
        Map<String, List<String>> map = (Map) request.getAttribute("map");
        for (String s : map.keySet()) {
            out.println("<h3>" + s + "</h3>");
            List<String> list = (List) map.get(s);
            for (int i = 0; i < list.size(); i++) {
    %>
    <div id="div<%=i %>">http://<%=list.get(i)%></div>
    <%
            }
        }
    %>
</div>
</body>
</html>
